Skip to content

Remove unused properties from Resource in config doc#1497

Merged
SteveL-MSFT merged 3 commits intoPowerShell:mainfrom
SteveL-MSFT:remove-properties
Apr 27, 2026
Merged

Remove unused properties from Resource in config doc#1497
SteveL-MSFT merged 3 commits intoPowerShell:mainfrom
SteveL-MSFT:remove-properties

Conversation

@SteveL-MSFT
Copy link
Copy Markdown
Member

PR Summary

With the decision to move away from strict ARM template compat, removing some properties that aren't used and doesn't make sense for DSC

@SteveL-MSFT SteveL-MSFT added this to the 3.2-Consider milestone Apr 27, 2026
Copilot AI review requested due to automatic review settings April 27, 2026 21:29
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the DSC configuration document model to move further away from ARM template compatibility by removing Resource properties that are no longer used / don’t apply to DSC.

Changes:

  • Removed several ARM-oriented Resource fields from the config document schema/model (comments, location, tags, identity, sku, kind, scope, plan).
  • Updated export-to-configuration construction logic to no longer map exported _kind into the config document Resource.
  • Minor formatting cleanup in check_security_context conditional.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
lib/dsc-lib/src/configure/mod.rs Updates export-to-config logic; removes _kind handling and includes a minor formatting change.
lib/dsc-lib/src/configure/config_doc.rs Removes unused/ARM-specific fields from the config document Resource struct and its constructor.

Comment thread lib/dsc-lib/src/configure/mod.rs
Comment thread lib/dsc-lib/src/configure/config_doc.rs Outdated
@SteveL-MSFT SteveL-MSFT added this pull request to the merge queue Apr 27, 2026
Merged via the queue into PowerShell:main with commit 9288f0c Apr 27, 2026
19 checks passed
@SteveL-MSFT SteveL-MSFT deleted the remove-properties branch April 27, 2026 23:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants